﻿namespace NOAH.CMS.Repository
{
    using System;
    using System.Collections.Generic;
    using System.Linq;

    public class ImageRepository : Repository<Image>
    {
        public List<Image> GetImageInCategory(int categoryId)
        {
            return (from p in base.dataContext.Images
                where p.CategoryId == categoryId
                select p).ToList<Image>();
        }
    }
}

